package com.ruoyi.back.service

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.app.common.Data
import com.ruoyi.back.domain.ClubJob
import com.ruoyi.back.domain.ClubJobData
import com.ruoyi.back.domain.vo.ClubJobDataVo

interface ClubJobDataService : IService<ClubJobData> {


    /**
     * 获取今日的曝光和点击数
     */
    fun todayCount(clubJobId: Long): Pair<Long?, Long?>

    /**
     * 昨日的曝光和点击次数
     */
    fun yesterdayCount(clubJobId: Long): Pair<Long?, Long?>

    /**
     * 昨日的曝光和点击次数
     */
    fun weekCount(clubJobId: Long): Pair<Long?, Long?>

    /**
     * 昨日的曝光和点击次数
     */
    fun monthdayCount(clubJobId: Long): Pair<Long?, Long?>

    /**
     * 昨日的曝光和点击次数
     */
    fun totalCount(clubJobId: Long): Pair<Long?, Long?>

    /**
     * 统计分页
     */
    fun clubJobDataPage(clubJob: ClubJob): Page<ClubJobDataVo>

    /**
     * 获取一个用户今天的数据
     */
    fun getTodayData(type: Int): ClubJobData?

}